package me.chanjar.weixin.component.bean.code;

import java.io.Serializable;

public class AuditStatusQueryResponse implements Serializable {
  private static final long serialVersionUID = -8288806745006792170L;

  /** 审核状态，其中0为审核成功，1为审核失败，2为审核中 */
  private AuditStatus status;
  /** 当status=1，审核被拒绝时，返回的拒绝原因 */
  private String reason;

  public AuditStatus getStatus() {
    return status;
  }

  public void setStatus(AuditStatus status) {
    this.status = status;
  }

  public String getReason() {
    return reason;
  }

  public void setReason(String reason) {
    this.reason = reason;
  }

  /**
   * 审核状态
   * 
   * @author liyang
   * @since 0.1
   */
  public static enum AuditStatus {
    SUCCES(0), // 审核成功
    FAILURE(1), // 审核失败
    ADUITING(2);// 审核中
    private int mState = 0;

    private AuditStatus(int value) {
      mState = value;
    }

    public int getState() {
      return mState;
    }
  }

}
